#ifndef _PYEDITOR_H_
#define _PYEDITOR_H_
#include "TextEditor.h"
#include "astng/Scopes/ModuleScope.h"

class PyHighlighter;
class PyEditor: public TextEditor
{
    Q_OBJECT
public:
    PyEditor(QWidget* parent = 0);
    virtual ~PyEditor();
private slots:
    void onContenChanged(int, int, int);
    void refresh();
    void onBlockCountChanged(int);
    void onContentLoaded();
private:
    ModuleScope * _module;
    QTimer *_timer;
    PyHighlighter *_hight;
};


#endif
